package gamagora.game.map.backgrounds
{
	import gamagora.game.animations.OSMonkey;
	import gamagora.game.animations.OSBird;
	import gamagora.game.animations.OSAnimation;
	import gamagora.game.map.OSBackground;
	import gamagora.game.utils.OSImages;
	
	public class OSBackground5 extends OSBackground
	{
		public function OSBackground5(SimpleGraphic:Class=null)
		{
			super(OSImages.E2P2);
		}
		
		protected override function create(animations:Vector.<OSAnimation>):void
		{
			var monkey1:OSMonkey = new OSMonkey(340, 943, OSAnimation.BACKGROUND3);
			var monkey2:OSMonkey = new OSMonkey(400, 943, OSAnimation.BACKGROUND3);
			var monkey3:OSMonkey = new OSMonkey(440, 943, OSAnimation.BACKGROUND3);
			var monkey4:OSMonkey = new OSMonkey(470, 943, OSAnimation.BACKGROUND3);
			var monkey5:OSMonkey = new OSMonkey(480, 900, OSAnimation.BACKGROUND3);
			var monkey6:OSMonkey = new OSMonkey(510, 920, OSAnimation.BACKGROUND3);
			
			monkey1.moveTo(140);
			monkey2.moveTo(210);
			monkey3.moveTo(470);
			monkey4.moveTo(500);
			monkey5.moveTo(320);
			monkey6.moveTo(440);
			
			animations.push(monkey1);
			animations.push(monkey2);
			animations.push(monkey3);
			animations.push(monkey4);
			animations.push(monkey5);
			animations.push(monkey6);
			
			// Oiseau de map
			animations.push(new OSBird(344, 1000, OSAnimation.NO_BACKGROUND));
			animations.push(new OSBird(364, 1000, OSAnimation.BACKGROUND2));
			animations.push(new OSBird(384, 1000, OSAnimation.NO_BACKGROUND));
			animations.push(new OSBird(414, 1000, OSAnimation.BACKGROUND2));
			animations.push(new OSBird(444, 1000, OSAnimation.BACKGROUND1));
			animations.push(new OSBird(464, 1000, OSAnimation.BACKGROUND2));
			
			
			
			
			animations.push(new OSBird(374, 1000, OSAnimation.BACKGROUND2));
			animations.push(new OSBird(394, 1000, OSAnimation.NO_BACKGROUND));
			animations.push(new OSBird(444, 1000, OSAnimation.BACKGROUND1));
			animations.push(new OSBird(484, 1000, OSAnimation.NO_BACKGROUND));
			animations.push(new OSBird(504, 1000, OSAnimation.BACKGROUND2));
			animations.push(new OSBird(534, 1000, OSAnimation.BACKGROUND1));
		}
	}
}